package Test2;

import java.time.Duration;
import java.time.LocalDateTime;

public class Test {
    public static void main(String[] args) {
        LocalDateTime now =LocalDateTime.now();

        LocalDateTime newyear =LocalDateTime.of(2026,2,17,0,0);
        Duration duration = Duration.between(now,newyear);
        long totalSeconds = Math.abs(duration.getSeconds());

        long days = totalSeconds / (24 * 60 * 60);
        long hours = (totalSeconds % (24 * 60 * 60)) / (60 * 60);
        long minutes = (totalSeconds % (60 * 60)) / 60;
        long seconds = totalSeconds % 60;
        System.out.println(days + "天" + hours + "小时" + minutes + "分" + seconds + "秒");
    }
}
